package com.alexeyhanin.tapestry.goodies.util;

import com.alexeyhanin.tapestry.goodies.util.select.InjectSelectModelWorker;
import org.apache.tapestry5.ioc.OrderedConfiguration;
import org.apache.tapestry5.ioc.services.PropertyAccess;
import org.apache.tapestry5.services.ComponentClassTransformWorker;

/**
 * @author aha
 * @since 2009.27.11
 *        $Id: TapestryUtilModule.java 16 2009-11-30 18:08:12Z gagarin61 $
 */
public class TapestryUtilModule {

    public static void contributeComponentClassTransformWorker(OrderedConfiguration<ComponentClassTransformWorker> configuration,
                                                               PropertyAccess propertyAccess) {
        configuration.add("InjectSelectModel", new InjectSelectModelWorker(propertyAccess), "after:Inject");
    }

}
